<?php

class TdRadioField extends TdFormField {
  var $checked;

  function __construct($id, $template="") {
    parent::__construct($id, $template);
  }

  function __toString() {
    return "<input id=\"".$this->id."\" name=\"".$this->name."\" type=\"radio\" value=\"".$this->value."\" ".($this->checked?"checked":"")." \/>";
  }
}

?>
